package com.mc.read.dao.models;

import java.util.ArrayList;
import java.util.Date;
import java.util.List;

public class UserreadcollectionExample {
    protected String orderByClause;

    protected boolean distinct;

    protected List<Criteria> oredCriteria;

    public UserreadcollectionExample() {
        oredCriteria = new ArrayList<Criteria>();
    }

    public void setOrderByClause(String orderByClause) {
        this.orderByClause = orderByClause;
    }

    public String getOrderByClause() {
        return orderByClause;
    }

    public void setDistinct(boolean distinct) {
        this.distinct = distinct;
    }

    public boolean isDistinct() {
        return distinct;
    }

    public List<Criteria> getOredCriteria() {
        return oredCriteria;
    }

    public void or(Criteria criteria) {
        oredCriteria.add(criteria);
    }

    public Criteria or() {
        Criteria criteria = createCriteriaInternal();
        oredCriteria.add(criteria);
        return criteria;
    }

    public Criteria createCriteria() {
        Criteria criteria = createCriteriaInternal();
        if (oredCriteria.size() == 0) {
            oredCriteria.add(criteria);
        }
        return criteria;
    }

    protected Criteria createCriteriaInternal() {
        Criteria criteria = new Criteria();
        return criteria;
    }

    public void clear() {
        oredCriteria.clear();
        orderByClause = null;
        distinct = false;
    }

    protected abstract static class GeneratedCriteria {
        protected List<Criterion> criteria;

        protected GeneratedCriteria() {
            super();
            criteria = new ArrayList<Criterion>();
        }

        public boolean isValid() {
            return criteria.size() > 0;
        }

        public List<Criterion> getAllCriteria() {
            return criteria;
        }

        public List<Criterion> getCriteria() {
            return criteria;
        }

        protected void addCriterion(String condition) {
            if (condition == null) {
                throw new RuntimeException("Value for condition cannot be null");
            }
            criteria.add(new Criterion(condition));
        }

        protected void addCriterion(String condition, Object value, String property) {
            if (value == null) {
                throw new RuntimeException("Value for " + property + " cannot be null");
            }
            criteria.add(new Criterion(condition, value));
        }

        protected void addCriterion(String condition, Object value1, Object value2, String property) {
            if (value1 == null || value2 == null) {
                throw new RuntimeException("Between values for " + property + " cannot be null");
            }
            criteria.add(new Criterion(condition, value1, value2));
        }

        public Criteria andUserreadcollectionidIsNull() {
            addCriterion("userReadCollectionId is null");
            return (Criteria) this;
        }

        public Criteria andUserreadcollectionidIsNotNull() {
            addCriterion("userReadCollectionId is not null");
            return (Criteria) this;
        }

        public Criteria andUserreadcollectionidEqualTo(Integer value) {
            addCriterion("userReadCollectionId =", value, "userreadcollectionid");
            return (Criteria) this;
        }

        public Criteria andUserreadcollectionidNotEqualTo(Integer value) {
            addCriterion("userReadCollectionId <>", value, "userreadcollectionid");
            return (Criteria) this;
        }

        public Criteria andUserreadcollectionidGreaterThan(Integer value) {
            addCriterion("userReadCollectionId >", value, "userreadcollectionid");
            return (Criteria) this;
        }

        public Criteria andUserreadcollectionidGreaterThanOrEqualTo(Integer value) {
            addCriterion("userReadCollectionId >=", value, "userreadcollectionid");
            return (Criteria) this;
        }

        public Criteria andUserreadcollectionidLessThan(Integer value) {
            addCriterion("userReadCollectionId <", value, "userreadcollectionid");
            return (Criteria) this;
        }

        public Criteria andUserreadcollectionidLessThanOrEqualTo(Integer value) {
            addCriterion("userReadCollectionId <=", value, "userreadcollectionid");
            return (Criteria) this;
        }

        public Criteria andUserreadcollectionidIn(List<Integer> values) {
            addCriterion("userReadCollectionId in", values, "userreadcollectionid");
            return (Criteria) this;
        }

        public Criteria andUserreadcollectionidNotIn(List<Integer> values) {
            addCriterion("userReadCollectionId not in", values, "userreadcollectionid");
            return (Criteria) this;
        }

        public Criteria andUserreadcollectionidBetween(Integer value1, Integer value2) {
            addCriterion("userReadCollectionId between", value1, value2, "userreadcollectionid");
            return (Criteria) this;
        }

        public Criteria andUserreadcollectionidNotBetween(Integer value1, Integer value2) {
            addCriterion("userReadCollectionId not between", value1, value2, "userreadcollectionid");
            return (Criteria) this;
        }

        public Criteria andBooknameIsNull() {
            addCriterion("bookName is null");
            return (Criteria) this;
        }

        public Criteria andBooknameIsNotNull() {
            addCriterion("bookName is not null");
            return (Criteria) this;
        }

        public Criteria andBooknameEqualTo(String value) {
            addCriterion("bookName =", value, "bookname");
            return (Criteria) this;
        }

        public Criteria andBooknameNotEqualTo(String value) {
            addCriterion("bookName <>", value, "bookname");
            return (Criteria) this;
        }

        public Criteria andBooknameGreaterThan(String value) {
            addCriterion("bookName >", value, "bookname");
            return (Criteria) this;
        }

        public Criteria andBooknameGreaterThanOrEqualTo(String value) {
            addCriterion("bookName >=", value, "bookname");
            return (Criteria) this;
        }

        public Criteria andBooknameLessThan(String value) {
            addCriterion("bookName <", value, "bookname");
            return (Criteria) this;
        }

        public Criteria andBooknameLessThanOrEqualTo(String value) {
            addCriterion("bookName <=", value, "bookname");
            return (Criteria) this;
        }

        public Criteria andBooknameLike(String value) {
            addCriterion("bookName like", value, "bookname");
            return (Criteria) this;
        }

        public Criteria andBooknameNotLike(String value) {
            addCriterion("bookName not like", value, "bookname");
            return (Criteria) this;
        }

        public Criteria andBooknameIn(List<String> values) {
            addCriterion("bookName in", values, "bookname");
            return (Criteria) this;
        }

        public Criteria andBooknameNotIn(List<String> values) {
            addCriterion("bookName not in", values, "bookname");
            return (Criteria) this;
        }

        public Criteria andBooknameBetween(String value1, String value2) {
            addCriterion("bookName between", value1, value2, "bookname");
            return (Criteria) this;
        }

        public Criteria andBooknameNotBetween(String value1, String value2) {
            addCriterion("bookName not between", value1, value2, "bookname");
            return (Criteria) this;
        }

        public Criteria andBooktitleIsNull() {
            addCriterion("bookTitle is null");
            return (Criteria) this;
        }

        public Criteria andBooktitleIsNotNull() {
            addCriterion("bookTitle is not null");
            return (Criteria) this;
        }

        public Criteria andBooktitleEqualTo(String value) {
            addCriterion("bookTitle =", value, "booktitle");
            return (Criteria) this;
        }

        public Criteria andBooktitleNotEqualTo(String value) {
            addCriterion("bookTitle <>", value, "booktitle");
            return (Criteria) this;
        }

        public Criteria andBooktitleGreaterThan(String value) {
            addCriterion("bookTitle >", value, "booktitle");
            return (Criteria) this;
        }

        public Criteria andBooktitleGreaterThanOrEqualTo(String value) {
            addCriterion("bookTitle >=", value, "booktitle");
            return (Criteria) this;
        }

        public Criteria andBooktitleLessThan(String value) {
            addCriterion("bookTitle <", value, "booktitle");
            return (Criteria) this;
        }

        public Criteria andBooktitleLessThanOrEqualTo(String value) {
            addCriterion("bookTitle <=", value, "booktitle");
            return (Criteria) this;
        }

        public Criteria andBooktitleLike(String value) {
            addCriterion("bookTitle like", value, "booktitle");
            return (Criteria) this;
        }

        public Criteria andBooktitleNotLike(String value) {
            addCriterion("bookTitle not like", value, "booktitle");
            return (Criteria) this;
        }

        public Criteria andBooktitleIn(List<String> values) {
            addCriterion("bookTitle in", values, "booktitle");
            return (Criteria) this;
        }

        public Criteria andBooktitleNotIn(List<String> values) {
            addCriterion("bookTitle not in", values, "booktitle");
            return (Criteria) this;
        }

        public Criteria andBooktitleBetween(String value1, String value2) {
            addCriterion("bookTitle between", value1, value2, "booktitle");
            return (Criteria) this;
        }

        public Criteria andBooktitleNotBetween(String value1, String value2) {
            addCriterion("bookTitle not between", value1, value2, "booktitle");
            return (Criteria) this;
        }

        public Criteria andBooktypenameIsNull() {
            addCriterion("bookTypeName is null");
            return (Criteria) this;
        }

        public Criteria andBooktypenameIsNotNull() {
            addCriterion("bookTypeName is not null");
            return (Criteria) this;
        }

        public Criteria andBooktypenameEqualTo(String value) {
            addCriterion("bookTypeName =", value, "booktypename");
            return (Criteria) this;
        }

        public Criteria andBooktypenameNotEqualTo(String value) {
            addCriterion("bookTypeName <>", value, "booktypename");
            return (Criteria) this;
        }

        public Criteria andBooktypenameGreaterThan(String value) {
            addCriterion("bookTypeName >", value, "booktypename");
            return (Criteria) this;
        }

        public Criteria andBooktypenameGreaterThanOrEqualTo(String value) {
            addCriterion("bookTypeName >=", value, "booktypename");
            return (Criteria) this;
        }

        public Criteria andBooktypenameLessThan(String value) {
            addCriterion("bookTypeName <", value, "booktypename");
            return (Criteria) this;
        }

        public Criteria andBooktypenameLessThanOrEqualTo(String value) {
            addCriterion("bookTypeName <=", value, "booktypename");
            return (Criteria) this;
        }

        public Criteria andBooktypenameLike(String value) {
            addCriterion("bookTypeName like", value, "booktypename");
            return (Criteria) this;
        }

        public Criteria andBooktypenameNotLike(String value) {
            addCriterion("bookTypeName not like", value, "booktypename");
            return (Criteria) this;
        }

        public Criteria andBooktypenameIn(List<String> values) {
            addCriterion("bookTypeName in", values, "booktypename");
            return (Criteria) this;
        }

        public Criteria andBooktypenameNotIn(List<String> values) {
            addCriterion("bookTypeName not in", values, "booktypename");
            return (Criteria) this;
        }

        public Criteria andBooktypenameBetween(String value1, String value2) {
            addCriterion("bookTypeName between", value1, value2, "booktypename");
            return (Criteria) this;
        }

        public Criteria andBooktypenameNotBetween(String value1, String value2) {
            addCriterion("bookTypeName not between", value1, value2, "booktypename");
            return (Criteria) this;
        }

        public Criteria andBookurlIsNull() {
            addCriterion("bookUrl is null");
            return (Criteria) this;
        }

        public Criteria andBookurlIsNotNull() {
            addCriterion("bookUrl is not null");
            return (Criteria) this;
        }

        public Criteria andBookurlEqualTo(String value) {
            addCriterion("bookUrl =", value, "bookurl");
            return (Criteria) this;
        }

        public Criteria andBookurlNotEqualTo(String value) {
            addCriterion("bookUrl <>", value, "bookurl");
            return (Criteria) this;
        }

        public Criteria andBookurlGreaterThan(String value) {
            addCriterion("bookUrl >", value, "bookurl");
            return (Criteria) this;
        }

        public Criteria andBookurlGreaterThanOrEqualTo(String value) {
            addCriterion("bookUrl >=", value, "bookurl");
            return (Criteria) this;
        }

        public Criteria andBookurlLessThan(String value) {
            addCriterion("bookUrl <", value, "bookurl");
            return (Criteria) this;
        }

        public Criteria andBookurlLessThanOrEqualTo(String value) {
            addCriterion("bookUrl <=", value, "bookurl");
            return (Criteria) this;
        }

        public Criteria andBookurlLike(String value) {
            addCriterion("bookUrl like", value, "bookurl");
            return (Criteria) this;
        }

        public Criteria andBookurlNotLike(String value) {
            addCriterion("bookUrl not like", value, "bookurl");
            return (Criteria) this;
        }

        public Criteria andBookurlIn(List<String> values) {
            addCriterion("bookUrl in", values, "bookurl");
            return (Criteria) this;
        }

        public Criteria andBookurlNotIn(List<String> values) {
            addCriterion("bookUrl not in", values, "bookurl");
            return (Criteria) this;
        }

        public Criteria andBookurlBetween(String value1, String value2) {
            addCriterion("bookUrl between", value1, value2, "bookurl");
            return (Criteria) this;
        }

        public Criteria andBookurlNotBetween(String value1, String value2) {
            addCriterion("bookUrl not between", value1, value2, "bookurl");
            return (Criteria) this;
        }

        public Criteria andCreatedateIsNull() {
            addCriterion("createDate is null");
            return (Criteria) this;
        }

        public Criteria andCreatedateIsNotNull() {
            addCriterion("createDate is not null");
            return (Criteria) this;
        }

        public Criteria andCreatedateEqualTo(Date value) {
            addCriterion("createDate =", value, "createdate");
            return (Criteria) this;
        }

        public Criteria andCreatedateNotEqualTo(Date value) {
            addCriterion("createDate <>", value, "createdate");
            return (Criteria) this;
        }

        public Criteria andCreatedateGreaterThan(Date value) {
            addCriterion("createDate >", value, "createdate");
            return (Criteria) this;
        }

        public Criteria andCreatedateGreaterThanOrEqualTo(Date value) {
            addCriterion("createDate >=", value, "createdate");
            return (Criteria) this;
        }

        public Criteria andCreatedateLessThan(Date value) {
            addCriterion("createDate <", value, "createdate");
            return (Criteria) this;
        }

        public Criteria andCreatedateLessThanOrEqualTo(Date value) {
            addCriterion("createDate <=", value, "createdate");
            return (Criteria) this;
        }

        public Criteria andCreatedateIn(List<Date> values) {
            addCriterion("createDate in", values, "createdate");
            return (Criteria) this;
        }

        public Criteria andCreatedateNotIn(List<Date> values) {
            addCriterion("createDate not in", values, "createdate");
            return (Criteria) this;
        }

        public Criteria andCreatedateBetween(Date value1, Date value2) {
            addCriterion("createDate between", value1, value2, "createdate");
            return (Criteria) this;
        }

        public Criteria andCreatedateNotBetween(Date value1, Date value2) {
            addCriterion("createDate not between", value1, value2, "createdate");
            return (Criteria) this;
        }

        public Criteria andBookidIsNull() {
            addCriterion("bookid is null");
            return (Criteria) this;
        }

        public Criteria andBookidIsNotNull() {
            addCriterion("bookid is not null");
            return (Criteria) this;
        }

        public Criteria andBookidEqualTo(Integer value) {
            addCriterion("bookid =", value, "bookid");
            return (Criteria) this;
        }

        public Criteria andBookidNotEqualTo(Integer value) {
            addCriterion("bookid <>", value, "bookid");
            return (Criteria) this;
        }

        public Criteria andBookidGreaterThan(Integer value) {
            addCriterion("bookid >", value, "bookid");
            return (Criteria) this;
        }

        public Criteria andBookidGreaterThanOrEqualTo(Integer value) {
            addCriterion("bookid >=", value, "bookid");
            return (Criteria) this;
        }

        public Criteria andBookidLessThan(Integer value) {
            addCriterion("bookid <", value, "bookid");
            return (Criteria) this;
        }

        public Criteria andBookidLessThanOrEqualTo(Integer value) {
            addCriterion("bookid <=", value, "bookid");
            return (Criteria) this;
        }

        public Criteria andBookidIn(List<Integer> values) {
            addCriterion("bookid in", values, "bookid");
            return (Criteria) this;
        }

        public Criteria andBookidNotIn(List<Integer> values) {
            addCriterion("bookid not in", values, "bookid");
            return (Criteria) this;
        }

        public Criteria andBookidBetween(Integer value1, Integer value2) {
            addCriterion("bookid between", value1, value2, "bookid");
            return (Criteria) this;
        }

        public Criteria andBookidNotBetween(Integer value1, Integer value2) {
            addCriterion("bookid not between", value1, value2, "bookid");
            return (Criteria) this;
        }

        public Criteria andUseridIsNull() {
            addCriterion("userid is null");
            return (Criteria) this;
        }

        public Criteria andUseridIsNotNull() {
            addCriterion("userid is not null");
            return (Criteria) this;
        }

        public Criteria andUseridEqualTo(Integer value) {
            addCriterion("userid =", value, "userid");
            return (Criteria) this;
        }

        public Criteria andUseridNotEqualTo(Integer value) {
            addCriterion("userid <>", value, "userid");
            return (Criteria) this;
        }

        public Criteria andUseridGreaterThan(Integer value) {
            addCriterion("userid >", value, "userid");
            return (Criteria) this;
        }

        public Criteria andUseridGreaterThanOrEqualTo(Integer value) {
            addCriterion("userid >=", value, "userid");
            return (Criteria) this;
        }

        public Criteria andUseridLessThan(Integer value) {
            addCriterion("userid <", value, "userid");
            return (Criteria) this;
        }

        public Criteria andUseridLessThanOrEqualTo(Integer value) {
            addCriterion("userid <=", value, "userid");
            return (Criteria) this;
        }

        public Criteria andUseridIn(List<Integer> values) {
            addCriterion("userid in", values, "userid");
            return (Criteria) this;
        }

        public Criteria andUseridNotIn(List<Integer> values) {
            addCriterion("userid not in", values, "userid");
            return (Criteria) this;
        }

        public Criteria andUseridBetween(Integer value1, Integer value2) {
            addCriterion("userid between", value1, value2, "userid");
            return (Criteria) this;
        }

        public Criteria andUseridNotBetween(Integer value1, Integer value2) {
            addCriterion("userid not between", value1, value2, "userid");
            return (Criteria) this;
        }

        public Criteria andUpdatedateIsNull() {
            addCriterion("updateDate is null");
            return (Criteria) this;
        }

        public Criteria andUpdatedateIsNotNull() {
            addCriterion("updateDate is not null");
            return (Criteria) this;
        }

        public Criteria andUpdatedateEqualTo(Date value) {
            addCriterion("updateDate =", value, "updatedate");
            return (Criteria) this;
        }

        public Criteria andUpdatedateNotEqualTo(Date value) {
            addCriterion("updateDate <>", value, "updatedate");
            return (Criteria) this;
        }

        public Criteria andUpdatedateGreaterThan(Date value) {
            addCriterion("updateDate >", value, "updatedate");
            return (Criteria) this;
        }

        public Criteria andUpdatedateGreaterThanOrEqualTo(Date value) {
            addCriterion("updateDate >=", value, "updatedate");
            return (Criteria) this;
        }

        public Criteria andUpdatedateLessThan(Date value) {
            addCriterion("updateDate <", value, "updatedate");
            return (Criteria) this;
        }

        public Criteria andUpdatedateLessThanOrEqualTo(Date value) {
            addCriterion("updateDate <=", value, "updatedate");
            return (Criteria) this;
        }

        public Criteria andUpdatedateIn(List<Date> values) {
            addCriterion("updateDate in", values, "updatedate");
            return (Criteria) this;
        }

        public Criteria andUpdatedateNotIn(List<Date> values) {
            addCriterion("updateDate not in", values, "updatedate");
            return (Criteria) this;
        }

        public Criteria andUpdatedateBetween(Date value1, Date value2) {
            addCriterion("updateDate between", value1, value2, "updatedate");
            return (Criteria) this;
        }

        public Criteria andUpdatedateNotBetween(Date value1, Date value2) {
            addCriterion("updateDate not between", value1, value2, "updatedate");
            return (Criteria) this;
        }

        public Criteria andTypeIsNull() {
            addCriterion("type is null");
            return (Criteria) this;
        }

        public Criteria andTypeIsNotNull() {
            addCriterion("type is not null");
            return (Criteria) this;
        }

        public Criteria andTypeEqualTo(Integer value) {
            addCriterion("type =", value, "type");
            return (Criteria) this;
        }

        public Criteria andTypeNotEqualTo(Integer value) {
            addCriterion("type <>", value, "type");
            return (Criteria) this;
        }

        public Criteria andTypeGreaterThan(Integer value) {
            addCriterion("type >", value, "type");
            return (Criteria) this;
        }

        public Criteria andTypeGreaterThanOrEqualTo(Integer value) {
            addCriterion("type >=", value, "type");
            return (Criteria) this;
        }

        public Criteria andTypeLessThan(Integer value) {
            addCriterion("type <", value, "type");
            return (Criteria) this;
        }

        public Criteria andTypeLessThanOrEqualTo(Integer value) {
            addCriterion("type <=", value, "type");
            return (Criteria) this;
        }

        public Criteria andTypeIn(List<Integer> values) {
            addCriterion("type in", values, "type");
            return (Criteria) this;
        }

        public Criteria andTypeNotIn(List<Integer> values) {
            addCriterion("type not in", values, "type");
            return (Criteria) this;
        }

        public Criteria andTypeBetween(Integer value1, Integer value2) {
            addCriterion("type between", value1, value2, "type");
            return (Criteria) this;
        }

        public Criteria andTypeNotBetween(Integer value1, Integer value2) {
            addCriterion("type not between", value1, value2, "type");
            return (Criteria) this;
        }

        public Criteria andCoverurlIsNull() {
            addCriterion("coverUrl is null");
            return (Criteria) this;
        }

        public Criteria andCoverurlIsNotNull() {
            addCriterion("coverUrl is not null");
            return (Criteria) this;
        }

        public Criteria andCoverurlEqualTo(String value) {
            addCriterion("coverUrl =", value, "coverurl");
            return (Criteria) this;
        }

        public Criteria andCoverurlNotEqualTo(String value) {
            addCriterion("coverUrl <>", value, "coverurl");
            return (Criteria) this;
        }

        public Criteria andCoverurlGreaterThan(String value) {
            addCriterion("coverUrl >", value, "coverurl");
            return (Criteria) this;
        }

        public Criteria andCoverurlGreaterThanOrEqualTo(String value) {
            addCriterion("coverUrl >=", value, "coverurl");
            return (Criteria) this;
        }

        public Criteria andCoverurlLessThan(String value) {
            addCriterion("coverUrl <", value, "coverurl");
            return (Criteria) this;
        }

        public Criteria andCoverurlLessThanOrEqualTo(String value) {
            addCriterion("coverUrl <=", value, "coverurl");
            return (Criteria) this;
        }

        public Criteria andCoverurlLike(String value) {
            addCriterion("coverUrl like", value, "coverurl");
            return (Criteria) this;
        }

        public Criteria andCoverurlNotLike(String value) {
            addCriterion("coverUrl not like", value, "coverurl");
            return (Criteria) this;
        }

        public Criteria andCoverurlIn(List<String> values) {
            addCriterion("coverUrl in", values, "coverurl");
            return (Criteria) this;
        }

        public Criteria andCoverurlNotIn(List<String> values) {
            addCriterion("coverUrl not in", values, "coverurl");
            return (Criteria) this;
        }

        public Criteria andCoverurlBetween(String value1, String value2) {
            addCriterion("coverUrl between", value1, value2, "coverurl");
            return (Criteria) this;
        }

        public Criteria andCoverurlNotBetween(String value1, String value2) {
            addCriterion("coverUrl not between", value1, value2, "coverurl");
            return (Criteria) this;
        }

        public Criteria andBooktypeidIsNull() {
            addCriterion("booktypeid is null");
            return (Criteria) this;
        }

        public Criteria andBooktypeidIsNotNull() {
            addCriterion("booktypeid is not null");
            return (Criteria) this;
        }

        public Criteria andBooktypeidEqualTo(Integer value) {
            addCriterion("booktypeid =", value, "booktypeid");
            return (Criteria) this;
        }

        public Criteria andBooktypeidNotEqualTo(Integer value) {
            addCriterion("booktypeid <>", value, "booktypeid");
            return (Criteria) this;
        }

        public Criteria andBooktypeidGreaterThan(Integer value) {
            addCriterion("booktypeid >", value, "booktypeid");
            return (Criteria) this;
        }

        public Criteria andBooktypeidGreaterThanOrEqualTo(Integer value) {
            addCriterion("booktypeid >=", value, "booktypeid");
            return (Criteria) this;
        }

        public Criteria andBooktypeidLessThan(Integer value) {
            addCriterion("booktypeid <", value, "booktypeid");
            return (Criteria) this;
        }

        public Criteria andBooktypeidLessThanOrEqualTo(Integer value) {
            addCriterion("booktypeid <=", value, "booktypeid");
            return (Criteria) this;
        }

        public Criteria andBooktypeidIn(List<Integer> values) {
            addCriterion("booktypeid in", values, "booktypeid");
            return (Criteria) this;
        }

        public Criteria andBooktypeidNotIn(List<Integer> values) {
            addCriterion("booktypeid not in", values, "booktypeid");
            return (Criteria) this;
        }

        public Criteria andBooktypeidBetween(Integer value1, Integer value2) {
            addCriterion("booktypeid between", value1, value2, "booktypeid");
            return (Criteria) this;
        }

        public Criteria andBooktypeidNotBetween(Integer value1, Integer value2) {
            addCriterion("booktypeid not between", value1, value2, "booktypeid");
            return (Criteria) this;
        }
    }

    public static class Criteria extends GeneratedCriteria {

        protected Criteria() {
            super();
        }
    }

    public static class Criterion {
        private String condition;

        private Object value;

        private Object secondValue;

        private boolean noValue;

        private boolean singleValue;

        private boolean betweenValue;

        private boolean listValue;

        private String typeHandler;

        public String getCondition() {
            return condition;
        }

        public Object getValue() {
            return value;
        }

        public Object getSecondValue() {
            return secondValue;
        }

        public boolean isNoValue() {
            return noValue;
        }

        public boolean isSingleValue() {
            return singleValue;
        }

        public boolean isBetweenValue() {
            return betweenValue;
        }

        public boolean isListValue() {
            return listValue;
        }

        public String getTypeHandler() {
            return typeHandler;
        }

        protected Criterion(String condition) {
            super();
            this.condition = condition;
            this.typeHandler = null;
            this.noValue = true;
        }

        protected Criterion(String condition, Object value, String typeHandler) {
            super();
            this.condition = condition;
            this.value = value;
            this.typeHandler = typeHandler;
            if (value instanceof List<?>) {
                this.listValue = true;
            } else {
                this.singleValue = true;
            }
        }

        protected Criterion(String condition, Object value) {
            this(condition, value, null);
        }

        protected Criterion(String condition, Object value, Object secondValue, String typeHandler) {
            super();
            this.condition = condition;
            this.value = value;
            this.secondValue = secondValue;
            this.typeHandler = typeHandler;
            this.betweenValue = true;
        }

        protected Criterion(String condition, Object value, Object secondValue) {
            this(condition, value, secondValue, null);
        }
    }
}